package com.useeinfo.oa.modules.base.entity;

import com.useeinfo.framework.extend.entity.SuperClassEntity;
import com.useeinfo.oa.modules.base.enums.TagTypeEnum;

import javax.persistence.*;

/**
 * @Auther: xudong.sun
 * @Date: 2018/12/3 10:02
 * @Description:
 */
@Entity
@Table(name = "tag")
public class Tag extends SuperClassEntity<Tag> {

    /**
     * 标签名称
     */
    private String tagName;

    /**
     * 描述
     */
    private String description;


    @ManyToOne
    @JoinColumn(name = "enterprise_id")
    private Enterprise enterprise;

    /**
     * 标签类型
     */
    @Enumerated(value = EnumType.STRING)
    @Column(name = "tag_type")
    private TagTypeEnum tagTypeEnum;

    public String getTagName() {
        return tagName;
    }

    public void setTagName(String tagName) {
        this.tagName = tagName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public TagTypeEnum getTagTypeEnum() {
        return tagTypeEnum;
    }

    public void setTagTypeEnum(TagTypeEnum tagTypeEnum) {
        this.tagTypeEnum = tagTypeEnum;
    }

    public Enterprise getEnterprise() {
        return enterprise;
    }

    public void setEnterprise(Enterprise enterprise) {
        this.enterprise = enterprise;
    }
}
